package com.naizhuai.ui.home.Chart;

/**
 * @author：lichenxi
 * @date 2018/1/25 17
 * email：525603977@qq.com
 * Fighting
 */
public class ComPanyInfo{

    public static String[] ProJect_Progress=new String[]{"未解决","已经解决","正在解决",};
    public String ProjectName;

    public int noslove;
    public int sloved;
    public int sloving;

    public ComPanyInfo(String projectName, int noslove, int sloved, int sloving) {
        ProjectName = projectName;
        this.noslove = noslove;
        this.sloved = sloved;
        this.sloving = sloving;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ComPanyInfo that = (ComPanyInfo) o;

        if (noslove != that.noslove) return false;
        if (sloved != that.sloved) return false;
        if (sloving != that.sloving) return false;
        return ProjectName.equals(that.ProjectName);
    }

    @Override
    public int hashCode() {
        int result = ProjectName.hashCode();
        result = 31 * result + noslove;
        result = 31 * result + sloved;
        result = 31 * result + sloving;
        return result;
    }

    @Override
    public String toString() {
        return "ComPanyInfo{" +
                "ProjectName='" + ProjectName + '\'' +
                ", noslove=" + noslove +
                ", sloved=" + sloved +
                ", sloving=" + sloving +
                '}';
    }
}
